package com.cqemme.messageservice.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author amkj
 */
@ConfigurationProperties(prefix = "email.config")
@Component
@Getter
@Setter
@RefreshScope
public class EmailProperties {

    private String rootSendEmail;

    private String rootSendUser;

    private int sendEmailDelayTime;

    private String projectName;

    private String projectStatus;

    /** 只在工作时间发送 */
    private boolean onlySendWork = true;

    private String[] workTimes;

    private String baseRequestUrl;

}


